package org.gokulam.cgfw.fs;

import java.io.File;
import java.io.IOException;

import org.gokulam.cgfw.exceptions.GenerationException;

public class Output {

	public boolean createDirs(String structure) {
		return new File(structure).mkdirs();
	}

	public boolean createFile(String file) {
		try {
			return new File(file).createNewFile();
		} catch (IOException ex) {
			throw new GenerationException("Failed to create file " + file, ex);
		}
	}
}
